<%--
  Created by IntelliJ IDEA.
  User: haol
  Date: 2016/9/23
  Time: 23:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@ include file="/common/meta.jsp" %>
    <link rel="stylesheet" type="text/css" href="${ctx}/js/lib/validate/validate.css">
    <script type="text/javascript" src="${ctx}/js/lib/validate/jquery.validate.min.js"></script>
    <script type="text/javascript" src="${ctx}/js/lib/validate/jquery.validate.common_rules.js"></script>
    <script type="text/javascript" src="${ctx}/js/lib/validate/messages_cn.js"></script>
    <script type="text/javascript" src="${ctx}/js/gcu/apply/edit.js"></script>
</head>
<body>
<div>
    <ul class="breadcrumb">
        <li class="icon"></li>
        <li>您所在的位置：</li>
        <li>系统管理</li>
        <li>申请表</li>
        <li>${empty id ? "新增" : "操作"}</li>
    </ul>
    <%@ include file="/common/top.jsp" %>
    <div class="widget widget-table">
        <div class="widget-content" id="formDiv">
            <form>
                <input type="hidden" name="id" value="${id}"/>
            </form>
        </div>
    </div>
</div>
</body>
</html>
<script type="text/template" id="applyTem">
    <div class="widget-content" id="_editDiv">
        <table class="pn-ftable table-bordered" border="0" cellpadding="10">
            <tbody class="_edit">
            <tr>
                <th colspan="2" style="text-align:center;">业主申请：</th>
                <input type="hidden" name="id" value="${apply.id}">
            </tr>
            <tr>
                <th><span class="point">*</span>申请姓名：</th>
                <td class="pn-fcontent form-inline">
                    <@if(apply.id != null ){@>
                    <input type="text" name="applyName" maxlength="50" class="form-control" value="<@=apply.applyName@>"
                           disabled/>
                    <@}else{@>
                    <input type="text" name="applyName" maxlength="50" class="form-control" value="<@=apply.applyName@>"
                           onblur="this.value=$.trim(this.value);"/>
                    <@}@>

                </td>
            </tr>
            <tr>
                <th><span class="point">*</span>联系方式：</th>
                <td class="pn-fcontent form-inline">
                    <input type="text" name="applyTel" maxlength="50" class="form-control" value="<@=apply.applyTel@>"/>
                </td>
            </tr>
            <tr>
                <th><span class="point">*</span>业主要求：</th>
                <td class="pn-fcontent form-inline">
                    <textarea rows="5" name="required" style="width:60%;" ><@=apply.required@></textarea>
                </td>
            </tr>
            <@
            if(apply.id != null ){
            @>
            <tr>
                <th colspan="2" style="text-align:center;">处理信息：</th>
            </tr>
            <tr>
                <th><span class="point">*</span>自编号：</th>
                <td class="pn-fcontent form-inline">
                    <input type="text"   class="form-control" value="<@=apply.identifier@>"disabled/>
                </td>
            </tr>
            <tr>
                <th><span class="point">*</span>处理结果：</th>
                <td class="pn-fcontent form-inline">
                    <select name="handleResult"  class="form-control">
                        <option value="0" <@ if(apply.handleResult==0){@>selected="selected"<@}@>>未处理</option>
                        <option value="1" <@ if(apply.handleResult==1){@>selected="selected"<@}@>>已处理</option>
                        <option value="2" <@ if(apply.handleResult==2){@>selected="selected"<@}@>>推迟处理</option>
                        <option value="3" <@ if(apply.handleResult==3){@>selected="selected"<@}@>>不处理</option>
                    </select>
                </td>
            </tr>
            <tr>
                <th><span class="point">*</span>处理备注：</th>
                <td class="pn-fcontent form-inline">
                    <textarea name="handleRemark" style="width:60%;"><@=apply.handleRemark@></textarea>
                </td>
            </tr>
            <tr>
                <th><span class="point">*</span>负责人：</th>
                <td class="pn-fcontent form-inline">
                    <input type="text"   class="form-control" value="<@=apply.responsible@>"disabled/>
                </td>
            </tr>
            <tr>
                <th><span class="point">*</span>处理人：</th>
                <td class="pn-fcontent form-inline">
                    <input type="text"   class="form-control" value="<@=apply.handleName@>"disabled/>
                </td>
            </tr>
            <@  }  @>
            <tr>
                <td class="pn-fcontent text-center" colspan="2">
                    <button type="button" class="btn btn-info" id="saveBtn">保存</button>
                    <button type="button" class="btn btn-default" id="backBtn">返回</button>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</script>
